//-----------------------------------------------------------------------
// <copyright file="UserPermissionBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class UserPermissionBase
	{
		
		#region Variable Declarations
		public static string _Table = "UserPermission";
		private int				userPermissionId = 0;
		private long				userId = 0;
		private int				permissionId = 0;
		private string				categoryId = string.Empty;
		private long				subCategoryID = 0;
		#endregion
		
		#region Constructors
		public UserPermissionBase() {}
		
		public UserPermissionBase (
			int userPermissionId,
			long userId,
			int permissionId,
			string categoryId,
			long subCategoryID)
		
		{
			this.userPermissionId = userPermissionId;
			this.userId = userId;
			this.permissionId = permissionId;
			this.categoryId = categoryId;
			this.subCategoryID = subCategoryID;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int UserPermissionId
		{
			get { return userPermissionId; }
			set { userPermissionId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long UserId
		{
			get { return userId; }
			set { userId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int PermissionId
		{
			get { return permissionId; }
			set { permissionId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string CategoryId
		{
			get { return categoryId; }
			set { categoryId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long SubCategoryID
		{
			get { return subCategoryID; }
			set { subCategoryID = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum UserPermissionColumns
	{
		UserPermissionId,
		UserId,
		PermissionId,
		CategoryId,
		SubCategoryID
	}//End enum
}